import React, { Component } from 'react';
import { Upload, Button, Icon, Form } from 'antd';


const FormItem = Form.Item;
@Form.create()
export default class RefundOrder extends Component {
  handleSubmit = (e) => {
    e.preventDefault();
    this.props.form.validateFields((err, values) => {
      if (!err) {
        const fileList = values.upload && values.upload.map(item => (
          item.response.data.map(items => items.fileUrl)));
        console.log(fileList);
        console.log('Received values of form: ', values);
      }
    });
  }
  normFile = (e) => {
    console.log('Upload event:', e);
    if (Array.isArray(e)) {
      return e;
    }
    return e && e.fileList;
  }
  render() {
    const { getFieldDecorator } = this.props.form;
    return (
      <div>
        <h1>功能暂未开放</h1>
        {/* <Form onSubmit={this.handleSubmit}> */}
        {/* <FormItem */}
        {/* label="Upload" */}
        {/* extra="longgggggggggggggggggggggggggggggggggg" */}
        {/* > */}
        {/* {getFieldDecorator('upload', { */}
        {/* valuePropName: 'fileList', */}
        {/* getValueFromEvent: this.normFile, */}
        {/* })( */}
        {/* <Upload name="logo" action="http://10.204.104.27:8665/file/upload" listType="picture"> */}
        {/* <Button> */}
        {/* <Icon type="upload" /> Click to upload */}
        {/* </Button> */}
        {/* </Upload> */}
        {/* )} */}
        {/* </FormItem> */}
        {/* <FormItem */}
        {/* wrapperCol={{ span: 12, offset: 6 }} */}
        {/* > */}
        {/* <Button type="primary" htmlType="submit">Submit</Button> */}
        {/* </FormItem> */}
        {/* </Form> */}
      </div>
    );
  }
}
